<?php
/**
 * Created by PhpStorm.
 * User: yuyi
 * Date: 17/9/17
 * Time: 22:51
 */
include __DIR__."/../vendor/autoload.php";
//$str = chr(123).chr(123>>8).chr(123>>16);
//
//$data = unpack("C3", $str);//[1];
//$len  = $data[1] + ($data[2] << 8) + ($data[3] << 16);
//var_dump($len);
//var_dump(-1<<7, (2<<62));
//
//$a = 1.1;
//$str = pack("V", 1.1);
//var_dump($str);
//var_dump(10<<2);
//
//$str = chr(63).chr(116).chr(52).chr(51);
//var_dump(unpack("N", $str));
//
//var_dump(ord(63).ord(116).ord(52).ord(51));

var_dump(\Wing\Bin\Constant\CapabilityFlag::CLIENT_ALL_FLAGS);
var_dump(\Wing\Bin\Constant\CapabilityFlag::CLIENT_BASIC_FLAGS);
//
//$str = '5.7.18-log';
//list($main_version, $minor_version, $sub_version) = explode(".",$str);
//$sub_version = preg_replace("/\D/","", $sub_version);
//
//var_dump($sub_version);
//$server_version = $main_version*10000 + $minor_version *100 + $sub_version;
//var_dump($server_version);

$str = "const armscii8_bin             = 64;//[\"id\" =>  64, \"character_set\" =>\"armscii8\" ];
    const armscii8_general_ci      = 32;//[\"id\" =>  32, \"character_set\" =>\"armscii8\" ];
    const ascii_bin                = 65;//[\"id\" =>  65, \"character_set\" =>\"ascii\"    ];
    const ascii_general_ci         = 11;//[\"id\" =>  11, \"character_set\" =>\"ascii\"    ];
    const big5_bin                 = 84;//[\"id\" =>  84, \"character_set\" =>\"big5\"     ];
    const big5_chinese_ci          = 1;//[\"id\" =>   1, \"character_set\" =>\"big5\"     ];
    const binary                   = 63;//[\"id\" =>  63, \"character_set\" =>\"binary\"   ];
    const cp1250_bin               = 66;//[\"id\" =>  66, \"character_set\" =>\"cp1250\"   ];
    const cp1250_croatian_ci       = 44;//[\"id\" =>  44, \"character_set\" =>\"cp1250\"   ];
    const cp1250_czech_cs          = 34;//[\"id\" =>  34, \"character_set\" =>\"cp1250\"   ];
    const cp1250_general_ci        = 26;//[\"id\" =>  26, \"character_set\" =>\"cp1250\"   ];
    const cp1250_polish_ci         = 99;//[\"id\" =>  99, \"character_set\" =>\"cp1250\"   ];
    const cp1251_bin               = 50;//[\"id\" =>  50, \"character_set\" =>\"cp1251\"   ];
    const cp1251_bulgarian_ci      = 14;//[\"id\" =>  14, \"character_set\" =>\"cp1251\"   ];
    const cp1251_general_ci        = 51;//[\"id\" =>  51, \"character_set\" =>\"cp1251\"   ];
    const cp1251_general_cs        = 52;//[\"id\" =>  52, \"character_set\" =>\"cp1251\"   ];
    const cp1251_ukrainian_ci      = 23;//[\"id\" =>  23, \"character_set\" =>\"cp1251\"   ];
    const cp1256_bin               = 67;//[\"id\" =>  67, \"character_set\" =>\"cp1256\"   ];
    const cp1256_general_ci        = 57;//[\"id\" =>  57, \"character_set\" =>\"cp1256\"   ];
    const cp1257_bin               = 58;//[\"id\" =>  58, \"character_set\" =>\"cp1257\"   ];
    const cp1257_general_ci        = 59;//[\"id\" =>  59, \"character_set\" =>\"cp1257\"   ];
    const cp1257_lithuanian_ci     = 29;//[\"id\" =>  29, \"character_set\" =>\"cp1257\"   ];
    const cp850_bin                = 80;//[\"id\" =>  80, \"character_set\" =>\"cp850\"    ];
    const cp850_general_ci         = 4;//[\"id\" =>   4, \"character_set\" =>\"cp850\"    ];
    const cp852_bin                = 81;//[\"id\" =>  81, \"character_set\" =>\"cp852\"    ];
    const cp852_general_ci         = 40;//[\"id\" =>  40, \"character_set\" =>\"cp852\"    ];
    const cp866_bin                = 68;//[\"id\" =>  68, \"character_set\" =>\"cp866\"    ];
    const cp866_general_ci         = 36;//[\"id\" =>  36, \"character_set\" =>\"cp866\"    ];
    const cp932_bin                = 96;//[\"id\" =>  96, \"character_set\" =>\"cp932\"    ];
    const cp932_japanese_ci        = 95;//[\"id\" =>  95, \"character_set\" =>\"cp932\"    ];
    const dec8_bin                 = 69;//[\"id\" =>  69, \"character_set\" =>\"dec8\"     ];
    const dec8_swedish_ci          = 3;//[\"id\" =>   3, \"character_set\" =>\"dec8\"     ];
    const eucjpms_bin              = 98;//[\"id\" =>  98, \"character_set\" =>\"eucjpms\"  ];
    const eucjpms_japanese_ci      = 97;//[\"id\" =>  97, \"character_set\" =>\"eucjpms\"  ];
    const euckr_bin                = 85;//[\"id\" =>  85, \"character_set\" =>\"euckr\"    ];
    const euckr_korean_ci          = 19;//[\"id\" =>  19, \"character_set\" =>\"euckr\"    ];
    const gb2312_bin               = 86;//[\"id\" =>  86, \"character_set\" =>\"gb2312\"   ];
    const gb2312_chinese_ci        = 24;//[\"id\" =>  24, \"character_set\" =>\"gb2312\"   ];
    const gbk_bin                  = 87;//[\"id\" =>  87, \"character_set\" =>\"gbk\"      ];
    const gbk_chinese_ci           = 28;//[\"id\" =>  28, \"character_set\" =>\"gbk\"      ];
    const geostd8_bin              = 93;//[\"id\" =>  93, \"character_set\" =>\"geostd8\"  ];
    const geostd8_general_ci       = 92;//[\"id\" =>  92, \"character_set\" =>\"geostd8\"  ];
    const greek_bin                = 70;//[\"id\" =>  70, \"character_set\" =>\"greek\"    ];
    const greek_general_ci         = 25;//[\"id\" =>  25, \"character_set\" =>\"greek\"    ];
    const hebrew_bin               = 71;//[\"id\" =>  71, \"character_set\" =>\"hebrew\"   ];
    const hebrew_general_ci        = 16;//[\"id\" =>  16, \"character_set\" =>\"hebrew\"   ];
    const hp8_bin                  = 72;//[\"id\" =>  72, \"character_set\" =>\"hp8\"      ];
    const hp8_english_ci           = 6;//[\"id\" =>   6, \"character_set\" =>\"hp8\"      ];
    const keybcs2_bin              = 73;//[\"id\" =>  73, \"character_set\" =>\"keybcs2\"  ];
    const keybcs2_general_ci       = 37;//[\"id\" =>  37, \"character_set\" =>\"keybcs2\"  ];
    const koi8r_bin                = 74;//[\"id\" =>  74, \"character_set\" =>\"koi8r\"    ];
    const koi8r_general_ci         = 7;//[\"id\" =>   7, \"character_set\" =>\"koi8r\"    ];
    const koi8u_bin                = 75;//[\"id\" =>  75, \"character_set\" =>\"koi8u\"    ];
    const koi8u_general_ci         = 22;//[\"id\" =>  22, \"character_set\" =>\"koi8u\"    ];
    const latin1_bin               = 47;//[\"id\" =>  47, \"character_set\" =>\"latin1\"   ];
    const latin1_danish_ci         = 15;//[\"id\" =>  15, \"character_set\" =>\"latin1\"   ];
    const latin1_general_ci        = 48;//[\"id\" =>  48, \"character_set\" =>\"latin1\"   ];
    const latin1_general_cs        = 49;//[\"id\" =>  49, \"character_set\" =>\"latin1\"   ];
    const latin1_german1_ci        = 5;//[\"id\" =>   5, \"character_set\" =>\"latin1\"   ];
    const latin1_german2_ci        = 31;//[\"id\" =>  31, \"character_set\" =>\"latin1\"   ];
    const latin1_spanish_ci        = 94;//[\"id\" =>  94, \"character_set\" =>\"latin1\"   ];
    const latin1_swedish_ci        = 8;//[\"id\" =>   8, \"character_set\" =>\"latin1\"   ];
    const latin2_bin               = 77;//[\"id\" =>  77, \"character_set\" =>\"latin2\"   ];
    const latin2_croatian_ci       = 27;//[\"id\" =>  27, \"character_set\" =>\"latin2\"   ];
    const latin2_czech_cs          = 2;//[\"id\" =>   2, \"character_set\" =>\"latin2\"   ];
    const latin2_general_ci        = 9;//[\"id\" =>   9, \"character_set\" =>\"latin2\"   ];
    const latin2_hungarian_ci      = 21;//[\"id\" =>  21, \"character_set\" =>\"latin2\"   ];
    const latin5_bin               = 78;//[\"id\" =>  78, \"character_set\" =>\"latin5\"   ];
    const latin5_turkish_ci        = 30;//[\"id\" =>  30, \"character_set\" =>\"latin5\"   ];
    const latin7_bin               = 79;//[\"id\" =>  79, \"character_set\" =>\"latin7\"   ];
    const latin7_estonian_cs       = 20;//[\"id\" =>  20, \"character_set\" =>\"latin7\"   ];
    const latin7_general_ci        = 41;//[\"id\" =>  41, \"character_set\" =>\"latin7\"   ];
    const latin7_general_cs        = 42;//[\"id\" =>  42, \"character_set\" =>\"latin7\"   ];
    const macce_bin                = 43;//[\"id\" =>  43, \"character_set\" =>\"macce\"    ];
    const macce_general_ci         = 38;//[\"id\" =>  38, \"character_set\" =>\"macce\"    ];
    const macroman_bin             = 53;//[\"id\" =>  53, \"character_set\" =>\"macroman\" ];
    const macroman_general_ci      = 39;//[\"id\" =>  39, \"character_set\" =>\"macroman\" ];
    const sjis_bin                 = 88;//[\"id\" =>  88, \"character_set\" =>\"sjis\"     ];
    const sjis_japanese_ci         = 13;//[\"id\" =>  13, \"character_set\" =>\"sjis\"     ];
    const swe7_bin                 = 82;//[\"id\" =>  82, \"character_set\" =>\"swe7\"     ];
    const swe7_swedish_ci          = 10;//[\"id\" =>  10, \"character_set\" =>\"swe7\"     ];
    const tis620_bin               = 89;//[\"id\" =>  89, \"character_set\" =>\"tis620\"   ];
    const tis620_thai_ci           = 18;//[\"id\" =>  18, \"character_set\" =>\"tis620\"   ];
    const ucs2_bin                 = 90;//[\"id\" =>  90, \"character_set\" =>\"ucs2\"     ];
    const ucs2_czech_ci            = 138;//[\"id\" => 138, \"character_set\" =>\"ucs2\"     ];
    const ucs2_danish_ci           = 139;//[\"id\" => 139, \"character_set\" =>\"ucs2\"     ];
    const ucs2_esperanto_ci        = 145;//[\"id\" => 145, \"character_set\" =>\"ucs2\"     ];
    const ucs2_estonian_ci         = 134;//[\"id\" => 134, \"character_set\" =>\"ucs2\"     ];
    const ucs2_general_ci          = 35;//[\"id\" =>  35, \"character_set\" =>\"ucs2\"     ];
    const ucs2_general_mysql500_ci = 159;//[\"id\" => 159, \"character_set\" =>\"ucs2\"     ];
    const ucs2_hungarian_ci        = 146;//[\"id\" => 146, \"character_set\" =>\"ucs2\"     ];
    const ucs2_icelandic_ci        = 129;//[\"id\" => 129, \"character_set\" =>\"ucs2\"     ];
    const ucs2_latvian_ci          = 130;//[\"id\" => 130, \"character_set\" =>\"ucs2\"     ];
    const ucs2_lithuanian_ci       = 140;//[\"id\" => 140, \"character_set\" =>\"ucs2\"     ];
    const ucs2_persian_ci          = 144;//[\"id\" => 144, \"character_set\" =>\"ucs2\"     ];
    const ucs2_polish_ci           = 133;//[\"id\" => 133, \"character_set\" =>\"ucs2\"     ];
    const ucs2_romanian_ci         = 131;//[\"id\" => 131, \"character_set\" =>\"ucs2\"     ];
    const ucs2_roman_ci            = 143;//[\"id\" => 143, \"character_set\" =>\"ucs2\"     ];
    const ucs2_sinhala_ci          = 147;//[\"id\" => 147, \"character_set\" =>\"ucs2\"     ];
    const ucs2_slovak_ci           = 141;//[\"id\" => 141, \"character_set\" =>\"ucs2\"     ];
    const ucs2_slovenian_ci        = 132;//[\"id\" => 132, \"character_set\" =>\"ucs2\"     ];
    const ucs2_spanish2_ci         = 142;//[\"id\" => 142, \"character_set\" =>\"ucs2\"     ];
    const ucs2_spanish_ci          = 135;//[\"id\" => 135, \"character_set\" =>\"ucs2\"     ];
    const ucs2_swedish_ci          = 136;//[\"id\" => 136, \"character_set\" =>\"ucs2\"     ];
    const ucs2_turkish_ci          = 137;//[\"id\" => 137, \"character_set\" =>\"ucs2\"     ];
    const ucs2_unicode_ci          = 128;//[\"id\" => 128, \"character_set\" =>\"ucs2\"     ];
    const ujis_bin                 = 91;//[\"id\" =>  91, \"character_set\" =>\"ujis\"     ];
    const ujis_japanese_ci         = 12;//[\"id\" =>  12, \"character_set\" =>\"ujis\"     ];
    const utf16_bin                = 55;//[\"id\" =>  55, \"character_set\" =>\"utf16\"    ];
    const utf16_czech_ci           = 111;//[\"id\" => 111, \"character_set\" =>\"utf16\"    ];
    const utf16_danish_ci          = 112;//[\"id\" => 112, \"character_set\" =>\"utf16\"    ];
    const utf16_esperanto_ci       = 118;//[\"id\" => 118, \"character_set\" =>\"utf16\"    ];
    const utf16_estonian_ci        = 107;//[\"id\" => 107, \"character_set\" =>\"utf16\"    ];
    const utf16_general_ci         = 54;//[\"id\" =>  54, \"character_set\" =>\"utf16\"    ];
    const utf16_hungarian_ci       = 119;//[\"id\" => 119, \"character_set\" =>\"utf16\"    ];
    const utf16_icelandic_ci       = 102;//[\"id\" => 102, \"character_set\" =>\"utf16\"    ];
    const utf16_latvian_ci         = 103;//[\"id\" => 103, \"character_set\" =>\"utf16\"    ];
    const utf16_lithuanian_ci      = 113;//[\"id\" => 113, \"character_set\" =>\"utf16\"    ];
    const utf16_persian_ci         = 117;//[\"id\" => 117, \"character_set\" =>\"utf16\"    ];
    const utf16_polish_ci          = 106;//[\"id\" => 106, \"character_set\" =>\"utf16\"    ];
    const utf16_romanian_ci        = 104;//[\"id\" => 104, \"character_set\" =>\"utf16\"    ];
    const utf16_roman_ci           = 116;//[\"id\" => 116, \"character_set\" =>\"utf16\"    ];
    const utf16_sinhala_ci         = 120;//[\"id\" => 120, \"character_set\" =>\"utf16\"    ];
    const utf16_slovak_ci          = 114;//[\"id\" => 114, \"character_set\" =>\"utf16\"    ];
    const utf16_slovenian_ci       = 105;//[\"id\" => 105, \"character_set\" =>\"utf16\"    ];
    const utf16_spanish2_ci        = 115;//[\"id\" => 115, \"character_set\" =>\"utf16\"    ];
    const utf16_spanish_ci         = 108;//[\"id\" => 108, \"character_set\" =>\"utf16\"    ];
    const utf16_swedish_ci         = 109;//[\"id\" => 109, \"character_set\" =>\"utf16\"    ];
    const utf16_turkish_ci         = 110;//[\"id\" => 110, \"character_set\" =>\"utf16\"    ];
    const utf16_unicode_ci         = 101;//[\"id\" => 101, \"character_set\" =>\"utf16\"    ];
    const utf32_bin                = 61;//[\"id\" =>  61, \"character_set\" =>\"utf32\"    ];
    const utf32_czech_ci           = 179;//[\"id\" => 170, \"character_set\" =>\"utf32\"    ];
    const utf32_danish_ci          = 171;//[\"id\" => 171, \"character_set\" =>\"utf32\"    ];
    const utf32_esperanto_ci       = 177;//[\"id\" => 177, \"character_set\" =>\"utf32\"    ];
    const utf32_estonian_ci        = 166;//[\"id\" => 166, \"character_set\" =>\"utf32\"    ];
    const utf32_general_ci         = 60;//[\"id\" =>  60, \"character_set\" =>\"utf32\"    ];
    const utf32_hungarian_ci       = 178;//[\"id\" => 178, \"character_set\" =>\"utf32\"    ];
    const utf32_icelandic_ci       = 161;//[\"id\" => 161, \"character_set\" =>\"utf32\"    ];
    const utf32_latvian_ci         = 162;//[\"id\" => 162, \"character_set\" =>\"utf32\"    ];
    const utf32_lithuanian_ci      = 172;//[\"id\" => 172, \"character_set\" =>\"utf32\"    ];
    const utf32_persian_ci         = 176;//[\"id\" => 176, \"character_set\" =>\"utf32\"    ];
    const utf32_polish_ci          = 165;//[\"id\" => 165, \"character_set\" =>\"utf32\"    ];
    const utf32_romanian_ci        = 163;//[\"id\" => 163, \"character_set\" =>\"utf32\"    ];
    const utf32_roman_ci           = 175;//[\"id\" => 175, \"character_set\" =>\"utf32\"    ];
    const utf32_sinhala_ci         = 179;//[\"id\" => 179, \"character_set\" =>\"utf32\"    ];
    const utf32_slovak_ci          = 173;//[\"id\" => 173, \"character_set\" =>\"utf32\"    ];
    const utf32_slovenian_ci       = 164;//[\"id\" => 164, \"character_set\" =>\"utf32\"    ];
    const utf32_spanish2_ci        = 174;//[\"id\" => 174, \"character_set\" =>\"utf32\"    ];
    const utf32_spanish_ci         = 167;//[\"id\" => 167, \"character_set\" =>\"utf32\"    ];
    const utf32_swedish_ci         = 168;//[\"id\" => 168, \"character_set\" =>\"utf32\"    ];
    const utf32_turkish_ci         = 169;//[\"id\" => 169, \"character_set\" =>\"utf32\"    ];
    const utf32_unicode_ci         = 160;//[\"id\" => 160, \"character_set\" =>\"utf32\"    ];
    const utf8mb4_bin              = 46;//[\"id\" =>  46, \"character_set\" =>\"utf8mb4\"  ];
    const utf8mb4_czech_ci         = 234;//[\"id\" => 234, \"character_set\" =>\"utf8mb4\"  ];
    const utf8mb4_danish_ci        = 235;//[\"id\" => 235, \"character_set\" =>\"utf8mb4\"  ];
    const utf8mb4_esperanto_ci     = 241;//[\"id\" => 241, \"character_set\" =>\"utf8mb4\"  ];
    const utf8mb4_estonian_ci      = 230;//[\"id\" => 230, \"character_set\" =>\"utf8mb4\"  ];
    const utf8mb4_general_ci       = 45;//[\"id\" =>  45, \"character_set\" =>\"utf8mb4\"  ];
    const utf8mb4_hungarian_ci     = 242;//[\"id\" => 242, \"character_set\" =>\"utf8mb4\"  ];
    const utf8mb4_icelandic_ci     = 225;//[\"id\" => 225, \"character_set\" =>\"utf8mb4\"  ];
    const utf8mb4_latvian_ci       = 226;//[\"id\" => 226, \"character_set\" =>\"utf8mb4\"  ];
    const utf8mb4_lithuanian_ci    = 236;//[\"id\" => 236, \"character_set\" =>\"utf8mb4\"  ];
    const utf8mb4_persian_ci       = 240;//[\"id\" => 240, \"character_set\" =>\"utf8mb4\"  ];
    const utf8mb4_polish_ci        = 229;//[\"id\" => 229, \"character_set\" =>\"utf8mb4\"  ];
    const utf8mb4_romanian_ci      = 227;//[\"id\" => 227, \"character_set\" =>\"utf8mb4\"  ];
    const utf8mb4_roman_ci         = 239;//[\"id\" => 239, \"character_set\" =>\"utf8mb4\"  ];
    const utf8mb4_sinhala_ci       = 243;//[\"id\" => 243, \"character_set\" =>\"utf8mb4\"  ];
    const utf8mb4_slovak_ci        = 237;//[\"id\" => 237, \"character_set\" =>\"utf8mb4\"  ];
    const utf8mb4_slovenian_ci     = 228;//[\"id\" => 228, \"character_set\" =>\"utf8mb4\"  ];
    const utf8mb4_spanish2_ci      = 238;//[\"id\" => 238, \"character_set\" =>\"utf8mb4\"  ];
    const utf8mb4_spanish_ci       = 231;//[\"id\" => 231, \"character_set\" =>\"utf8mb4\"  ];
    const utf8mb4_swedish_ci       = 232;//[\"id\" => 232, \"character_set\" =>\"utf8mb4\"  ];
    const utf8mb4_turkish_ci       = 233;//[\"id\" => 233, \"character_set\" =>\"utf8mb4\"  ];
    const utf8mb4_unicode_ci       = 224;//[\"id\" => 224, \"character_set\" =>\"utf8mb4\"  ];
    const utf8_bin                 = 83;//[\"id\" =>  83, \"character_set\" =>\"utf8\"     ];
    const utf8_czech_ci            = 202;//[\"id\" => 202, \"character_set\" =>\"utf8\"     ];
    const utf8_danish_ci           = 203;//[\"id\" => 203, \"character_set\" =>\"utf8\"     ];
    const utf8_esperanto_ci        = 209;//[\"id\" => 209, \"character_set\" =>\"utf8\"     ];
    const utf8_estonian_ci         = 198;//[\"id\" => 198, \"character_set\" =>\"utf8\"     ];
    const utf8_general_ci          = 33;//[\"id\" =>  33, \"character_set\" =>\"utf8\"     ];
    const utf8_general_mysql500_ci = 223;//[\"id\" => 223, \"character_set\" =>\"utf8\"     ];
    const utf8_hungarian_ci        = 210;//[\"id\" => 210, \"character_set\" =>\"utf8\"     ];
    const utf8_icelandic_ci        = 193;//[\"id\" => 193, \"character_set\" =>\"utf8\"     ];
    const utf8_latvian_ci          = 194;//[\"id\" => 194, \"character_set\" =>\"utf8\"     ];
    const utf8_lithuanian_ci       = 204;//[\"id\" => 204, \"character_set\" =>\"utf8\"     ];
    const utf8_persian_ci          = 208;//[\"id\" => 208, \"character_set\" =>\"utf8\"     ];
    const utf8_polish_ci           = 197;//[\"id\" => 197, \"character_set\" =>\"utf8\"     ];
    const utf8_romanian_ci         = 195;//[\"id\" => 195, \"character_set\" =>\"utf8\"     ];
    const utf8_roman_ci            = 207;//[\"id\" => 207, \"character_set\" =>\"utf8\"     ];
    const utf8_sinhala_ci          = 211;//[\"id\" => 211, \"character_set\" =>\"utf8\"     ];
    const utf8_slovak_ci           = 205;//[\"id\" => 205, \"character_set\" =>\"utf8\"     ];
    const utf8_slovenian_ci        = 196;//[\"id\" => 196, \"character_set\" =>\"utf8\"     ];
    const utf8_spanish2_ci         = 206;//[\"id\" => 206, \"character_set\" =>\"utf8\"     ];
    const utf8_spanish_ci          = 199;//[\"id\" => 199, \"character_set\" =>\"utf8\"     ];
    const utf8_swedish_ci          = 200;//[\"id\" => 200, \"character_set\" =>\"utf8\"     ];
    const utf8_turkish_ci          = 201;//[\"id\" => 201, \"character_set\" =>\"utf8\"     ];
    const utf8_unicode_ci          = 192;//[\"id\" => 192, \"character_set\" =>\"utf8\"     ];
";

$len = strlen($str);
$pos = 0;
while($pos <= $len) {
	if (substr($str, $pos, 5) == "const")
	{
		$pos+=6;
		$old_s = $pos;
		$sl = 0;
		while($str[$pos] != ' ') {$pos++;$sl++;}
		$key = substr($str, $old_s, $sl);
		echo 'case self::'.$key.':
			return "'.$key.'";
			break;
		';
	}

	$pos++;
}